import java.util.Scanner;

/**
 * Created by L.jp
 * Description:
 * User: 86189
 * Date: 2021-10-07
 * Time: 21:30
 */
public class AdiminUser extends User {
    public AdiminUser(String name) {
        super(name);
        this.iOperations = new Ioperation[]{
                new ExitOperation(),
                new FindOperation(),
                new AddOperation(),
                new DelOperation(),
                new DisplayOperation()};
    }
    public int menu() {
        System.out.println("========= 管理员菜单 =========");
        System.out.println("1：查找书籍");
        System.out.println("2：增加书籍");
        System.out.println("3：删除书籍");
        System.out.println("4：显示所有书籍");
        System.out.println("0：退出系统");
        System.out.print("请输入您要执行的操作序号：");
        Scanner reader = new Scanner(System.in);
        int index = reader.nextInt();
        return index;
    }
}
